import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useTagviewsStore = defineStore('tagview', () => {
  // 用户访问过的页面
  const visitedViews = ref<TagView[]>([])
  // 实际keep-alive的路由,可通过配置路由时meta.keepAlive配置
  const cachedViews = ref<string[]>([])

  return { visitedViews, cachedViews }
})
